package edu.maplef.bookwild.schema;

import java.util.UUID;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import edu.maplef.bookwild.schema.constants.RequestStatus;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Request extends Base {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6454988367846251545L;

	@PrimaryKey
	private String id = UUID.randomUUID().toString();

	/**
	 * 发出请求用户在人人的ID
	 */
	@Persistent
	private String scrId;

	/**
	 * 接受请求用户在人人的ID
	 */
	@Persistent
	private String dstId;

	/**
	 * 请求的文本内容
	 */
	@Persistent
	private String content;

	/**
	 * 请求的状态:未处理，接受，忽略，拒绝
	 */
	@Persistent
	private String requestStatus = RequestStatus.UNRESOLVE;

	public String getScrId() {
		return scrId;
	}

	public void setScrId(String scrId) {
		this.scrId = scrId;
	}

	public String getDstId() {
		return dstId;
	}

	public void setDstId(String dstId) {
		this.dstId = dstId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getRequestStatus() {
		return requestStatus;
	}

	public void setRequestStatus(String status) {
		this.requestStatus = status;
	}

	public String getId() {
		return id;
	}
}